import request from './request'

/**
 * 提交认领申请
 */
export function submitClaim(data) {
  return request({
    url: '/claim/submit',
    method: 'post',
    data
  })
}

/**
 * 获取我的认领申请
 */
export function getMyClaims(params) {
  return request({
    url: '/claim/my',
    method: 'get',
    params
  })
}

/**
 * 获取待审核的认领申请
 */
export function getPendingClaims(params) {
  return request({
    url: '/claim/pending',
    method: 'get',
    params
  })
}

/**
 * 审核认领申请
 */
export function auditClaim(data) {
  return request({
    url: '/claim/audit',
    method: 'post',
    data
  })
}

